<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="__ADMIN__/css/pintuer.css">
<link rel="stylesheet" href="__ADMIN__/css/admin.css">
<script src="__ADMIN__/js/jquery.js"></script>
<script src="__ADMIN__/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改案例详情</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="{:url('admin/casedetails/edi')}" enctype="multipart/form-data">

      <input type="hidden" name="id" value="{$data.id}" />

      <input type="hidden" name="httpref" value="{$_SERVER['HTTP_REFERER']}" />

      <div class="form-group">
        <div class="label">
          <label>案例详情：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{$data.name}" name="name" />
          <div class="tips"></div>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label>案例分类：</label>
        </div>
        <div class="field">
          <select name="category" class="input w50">
            <option value="">请选择案例所属分类</option>
            {volist name="caseCate" id="cc"}
            <option value="{$cc.id}"
              {eq name="cc.id" value="$data.category"}selected ="selected" {/eq}
            >{$cc.name}</option>
            {/volist}
          </select>
          <div class="tips"></div>
        </div>
      </div>



      <div class="form-group">
        <div class="label">
          <label>案例头图：</label>
        </div>
        <div class="field">
          <img src="/{$data.sm_pic}" style="border-radius:4px;" />
        </div>
      </div>


      <div class="form-group">
        <div class="label">
          <label>案例头图：</label>
        </div>
        <div class="field">
          <input type="file" id="url1" name="pic" class="button bg-blue margin-left" style="width:25%; float:left;border-style:none;background-color: #0ae;"  data-toggle="hover" data-place="right" data-image="" />
          <div class="tips"></div>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label>案例排序：</label>
        </div>
        <div class="field">
          <input type="number" class="input w50" value="{$data.order}" name="order" />
          <div class="tips"></div>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label>是否推荐：</label>
        </div>
        <div class="field" style="padding-top:8px;">
          是<input name="is_groom" value="1" type="radio"
                  {eq name="data.is_groom" value="是"}checked="checked"{/eq}
          />
          否<input name="is_groom" value="2" type="radio"
                  {eq name="data.is_groom" value="否"}checked="checked"{/eq}
          />
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label>案例状态：</label>
        </div>
        <div class="field" style="padding-top:8px;">
          应用 <input name="status" value="1" type="radio"
              {eq name="data.status" value="应用"}checked="checked"{/eq}
          />
          禁用 <input name="status" value="2" type="radio"
              {eq name="data.status" value="禁用"}checked="checked"{/eq}
          />
        </div>
      </div>


      <div class="form-group">
        <div class="label">
          <label>案例描述：</label>
        </div>
        <div class="field">
          <textarea class="input" name="desc" style=" height:90px;">{$data.desc}</textarea>
          <div class="tips"></div>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>

</body></html>





